<?php
/**
 * The template for displaying Archive pages.
 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each specific one. For example, Twenty Twelve already
 * has tag.php for Tag archives, category.php for Category archives, and
 * author.php for Author archives.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
get_header('blog'); ?>
	<section id="primary" class="site-content">
		<div id="content" role="main">
			<?php 
			echo "<pre>".print_r($_SESSION,true)."</pre>";
			query_posts( 'category_name=blog&monthnum=' );
			if ( have_posts() ) : ?>
			<?php
			while ( have_posts() ) : the_post();
				get_template_part( 'content', 'blog-archive' );
			endwhile;
			twentytwelve_content_nav( 'nav-below' );
			?>
		<?php endif; ?>
		</div><!-- #content -->
	</section><!-- #primary -->
<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>